<?php
error_reporting(0);
ini_set('display_errors', true);
define('ROOT_PATH',dirname(dirname(__FILE__)));
include_once("../config.php");
include("../model/function.php");

function dropAllTable(){
	global $prefix;

	if(!mysql_query("drop table if exists ".$prefix."ad,".$prefix."app,".$prefix."article,".$prefix."artset,".$prefix."column,".$prefix."haodian,".$prefix."haodiantype,".$prefix."link,".$prefix."newshop,".$prefix."member,".$prefix."product,".$prefix."shopcat,".$prefix."shoplist,".$prefix."websetting,".$prefix."searchkey")){
		showinfo("程序出错，请联系客服，QQ：249917210");
		exit();
	}
	
}

$step = 0;
if(!empty($_GET['step']))
{
	$step = intval($_GET['step']);
}

if(in_array($step,array(0,1,2,3)) && file_exists('install.php.lock'))
{
	echo "<script>window.locltion='index.php'</script>";
}

$step = 'step-'.$step.'.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>风尚淘宝客 安装向导</title>
<link rel="stylesheet" href="images/style.css" type="text/css" media="all" />
</head>
<body>
<?php
require $step;
mysql_close($conn);
?>
</body>
</html>